package cn.zhage.aimin.mcp.server.mapper;

import cn.zhage.aimin.mcp.server.entity.User;
import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/*
 *
 * @author 渣哥
 */
public interface TableInfoMapper extends MPJBaseMapper<User> {

    List<Map<String,String>> tableNames();

    List<Map<String, String>> getFieldListByTableName(@Param("tableName") String tableName);

    @Select("${sql}")
    List<Map<String, Object>> executeSql(@Param("sql") String sql);
}
